/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package resource_builder;

import com.hitechbangla.fctu.base.aircraft.AircraftTurnDegree;
import com.hitechbangla.fctu.base.aircraft.AircraftType;
import com.hitechbangla.fctu.base.radar.RadarType;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Irteza
 * This class will save the radar type in radarType.object file
 */
public class RadarTypeBuilder {

    public static void main(String a[]) {
	List<RadarType> listRadarType = new ArrayList<>();
	listRadarType.add(new RadarType("Small", 32, 15,0.6f));
	listRadarType.add(new RadarType("Medium", 64, 10,0.5f));
	listRadarType.add(new RadarType("Big", 128, 0,0.8f));
	
	
//	try {
//	    FileOutputStream fileOutputStream = new FileOutputStream("src/resources/radarType.object");
//	    try (ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream)) {
//		objectOutputStream.writeObject(listRadarType);
//		objectOutputStream.flush();
//	    }
//	} catch (Exception ex) {
//	    //System.out.println(ex.toString());
//	}
    }
}
